package com.capinfo.accumulation.service.accounting.mybits.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.capinfo.accumulation.dao. PZHZDao;
import com.capinfo.accumulation.model.accounting.mybist. PZHZ;
import com.capinfo.accumulation.parameter.accounting.DataGrid;
import com.capinfo.accumulation.service.accounting.mybits.PZHZServiceI;

@Service("pZHZService")
public class  PZHZServiceImpl implements  PZHZServiceI {
	
	@Autowired
	 PZHZDao  pZHZDao;
	@Override
	public int deleteByPrimaryKey(String id) {
		return this.pZHZDao.deleteByPrimaryKey(id);
	}
	/**
	 * 取消汇总的方法
	 */
	@Override
	public void pzhzdelete(String id) {
		 this.pZHZDao.pzhzdelete(id);
	}

	@Override
	public int insert(PZHZ record) {
		return this.pZHZDao.insertSelective(record);
	}
	
	@Override
	public PZHZ selectByPrimaryKey(String id) {
		return this.pZHZDao.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(PZHZ record) {
		return this.pZHZDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public DataGrid findbyByGrid(Map map) {
		DataGrid dataGrid = new DataGrid();
		map.put("dataGrid", dataGrid);
		List<PZHZ> retList = this.pZHZDao.findbyByGrid(map);
		dataGrid.setRows(retList);
		return dataGrid;
	}

}
